﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace ValidateBankAccountUtil
{
    public class ValidateBankAccountUtil
    {
        /// <summary>
        /// 公共方法
        /// </summary>
        /// <param name="param"></param>
        public static ReturnBankAccountModel ValidateBankAccount2(BankAccountParam param)
        {
            BankAccountService bank = new BankAccountService();
            ReturnBankAccountModel res = bank.ValidateBankAccount2(param.CardNo,param.CustomerName);
            return res;
        }
        public static ReturnBankAccountModel ValidateBankAccount3(BankAccountParam param)
        {
            BankAccountService bank = new BankAccountService();
            ReturnBankAccountModel res = bank.ValidateBankAccount3(param.CardNo, param.CustomerName, param.CertifId);
            return res;
        }
        public static ReturnBankAccountModel ValidateBankAccount4(BankAccountParam param)
        {
            BankAccountService bank = new BankAccountService();
            ReturnBankAccountModel res = bank.ValidateBankAccount4(param.CardNo, param.CustomerName, param.CertifId,param.PhoneNo);
            return res;
        }
        public static ReturnBankAccountModel ValidateBankAccount6(BankAccountParam param)
        {
            BankAccountService bank = new BankAccountService();
            ReturnBankAccountModel res = bank.ValidateBankAccount6(param.CardNo, param.CustomerName, param.CertifId, param.PhoneNo,param.CVN2,param.Expired);
            return res;
        }
        static void Main(string[] args)
        {
            BankAccountParam param = new BankAccountParam();
            //参数获取
            //TODO
            ValidateBankAccount2(param);//调用公用方法
            Console.ReadKey();
        }
    }

}
